package com.personal.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class TSection {
    private Integer sectionid;

    private String sectionname;

    @JsonFormat(pattern = "HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "HH:mm:ss")
    private Date sectiontime;

    public Integer getSectionid() {
        return sectionid;
    }

    public void setSectionid(Integer sectionid) {
        this.sectionid = sectionid;
    }

    public String getSectionname() {
        return sectionname;
    }

    public void setSectionname(String sectionname) {
        this.sectionname = sectionname == null ? null : sectionname.trim();
    }

    public Date getSectiontime() {
        return sectiontime;
    }

    public void setSectiontime(Date sectiontime) {
        this.sectiontime = sectiontime;
    }

    @Override
    public String toString() {
        return "TSection{" +
                "sectionid=" + sectionid +
                ", sectionname='" + sectionname + '\'' +
                ", sectiontime=" + sectiontime +
                '}';
    }
}